package com.container.app.testclasses.configurations;

import com.container.app.MContainer;
import com.container.app.MContainerConfiguration;
import com.container.app.annotations.ImplementationTag;
import com.container.app.testclasses.movies.*;
import com.container.app.utilities.Pair;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/12/12
 * Time: 11:01 AM
 */
public class SimpleConfiguration extends MContainerConfiguration {

    public SimpleConfiguration(MContainer container) {
        super(container);
    }

    @Override
    public void configure() {

        addMapping(AbstractMovieLister.class, null, MovieLister.class);
        addMapping(MovieFinder.class, new Pair<Class, String>(ImplementationTag.class, "chosen implementation"), MovieFinderAnotherImplementation.class);
        addMapping(MovieFinder.class, new Pair<Class, String>(ImplementationTag.class, "simple implementation"), MovieFinderSimpleImplementation.class);

    }
}
